package com.ke.forum.forumapi.service;

import com.ke.forum.common.common.Result;
import com.ke.forum.mbg.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 珂
 * @since 2022-05-22
 */
public interface ArticleService extends IService<Article> {

    Result addArticle(Article article);

    Result updateArticle(Article article);

    Result deleteArticle(Integer id);

    Result listArticle(Integer sectionId,Boolean isRare,Integer sortWay,Integer current);

    Result getArticleInfo(Integer id);

    Result listArticleByUserId(String uuid,Integer current);

    Result listTopArticle(Integer sectionId);

    Result listStarUserArticles(Integer current);
}
